﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000B5 RID: 181
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ApplyFriendScRsp : IMessage<ApplyFriendScRsp>, IMessage, IEquatable<ApplyFriendScRsp>, IDeepCloneable<ApplyFriendScRsp>, IBufferMessage
	{
		// Token: 0x1700024B RID: 587
		// (get) Token: 0x0600081B RID: 2075 RVA: 0x00017560 File Offset: 0x00015760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ApplyFriendScRsp> Parser
		{
			get
			{
				return ApplyFriendScRsp._parser;
			}
		}

		// Token: 0x1700024C RID: 588
		// (get) Token: 0x0600081C RID: 2076 RVA: 0x00017567 File Offset: 0x00015767
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ApplyFriendScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700024D RID: 589
		// (get) Token: 0x0600081D RID: 2077 RVA: 0x00017579 File Offset: 0x00015779
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ApplyFriendScRsp.Descriptor;
			}
		}

		// Token: 0x0600081E RID: 2078 RVA: 0x00017580 File Offset: 0x00015780
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ApplyFriendScRsp()
		{
		}

		// Token: 0x0600081F RID: 2079 RVA: 0x00017588 File Offset: 0x00015788
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ApplyFriendScRsp(ApplyFriendScRsp other) : this()
		{
			this.uid_ = other.uid_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000820 RID: 2080 RVA: 0x000175B9 File Offset: 0x000157B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ApplyFriendScRsp Clone()
		{
			return new ApplyFriendScRsp(this);
		}

		// Token: 0x1700024E RID: 590
		// (get) Token: 0x06000821 RID: 2081 RVA: 0x000175C1 File Offset: 0x000157C1
		// (set) Token: 0x06000822 RID: 2082 RVA: 0x000175C9 File Offset: 0x000157C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x1700024F RID: 591
		// (get) Token: 0x06000823 RID: 2083 RVA: 0x000175D2 File Offset: 0x000157D2
		// (set) Token: 0x06000824 RID: 2084 RVA: 0x000175DA File Offset: 0x000157DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06000825 RID: 2085 RVA: 0x000175E3 File Offset: 0x000157E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ApplyFriendScRsp);
		}

		// Token: 0x06000826 RID: 2086 RVA: 0x000175F1 File Offset: 0x000157F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ApplyFriendScRsp other)
		{
			return other != null && (other == this || (this.Uid == other.Uid && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000827 RID: 2087 RVA: 0x00017630 File Offset: 0x00015830
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000828 RID: 2088 RVA: 0x00017688 File Offset: 0x00015888
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000829 RID: 2089 RVA: 0x00017690 File Offset: 0x00015890
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600082A RID: 2090 RVA: 0x0001769C File Offset: 0x0001589C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Uid != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Uid);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600082B RID: 2091 RVA: 0x000176F8 File Offset: 0x000158F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600082C RID: 2092 RVA: 0x00017750 File Offset: 0x00015950
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ApplyFriendScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600082D RID: 2093 RVA: 0x000177A0 File Offset: 0x000159A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600082E RID: 2094 RVA: 0x000177AC File Offset: 0x000159AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Uid = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040002FF RID: 767
		private static readonly MessageParser<ApplyFriendScRsp> _parser = new MessageParser<ApplyFriendScRsp>(() => new ApplyFriendScRsp());

		// Token: 0x04000300 RID: 768
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000301 RID: 769
		public const int UidFieldNumber = 13;

		// Token: 0x04000302 RID: 770
		private uint uid_;

		// Token: 0x04000303 RID: 771
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04000304 RID: 772
		private uint retcode_;
	}
}
